<%--
  Created by IntelliJ IDEA.
  User: 86177
  Date: 2023/6/25
  Time: 14:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<meta charset="UTF-8">
<head>
    <title>Title</title>
    <style>
        table{
            border: 1px solid gray;
            border-collapse: collapse;/*合并单元格边框*/
            width: 800px;
            text-align: center;/*居中*/
        }
        th,td{
            border: 1px solid gray;
            border-bottom: 1px solid gray;
        }
        thead th{
            background-color: black;
            color: white;
        }
        tbody tr:nth-child(2n){
            background-color: #939895;
            cursor: pointer;
        }
        tbody tr:nth-child(2n-1){
            background-color: white;
            cursor: pointer;/*鼠标放上去后变成小手*/
        }
        .bu{
            background-color: #ff3c38;
            color: white;
            width: 60px;
            height: 40px;
            margin: 0 auto;
            align-content: center;
            cursor: pointer;
        }
        .bu:hover{
            background-color: #00aa00;
            color: cyan;
        }
        .one{
            width: 100%;
            text-align: center;
            height: 8%;
            background-color: #a99ea2;
            color: white;
        }
        .two{
            height: 30%;
            width: 100%;
        }
        .three{
            width: 100%;
            height: 10%;
            text-align: center;
            margin:  0 auto;
        }
        .ww{
            height: 10%;
        }
    </style>
</head>
<body bgcolor="#f5f5dc">
<div class="one"> <h1>信息修改界面</h1></div>
<form action="SaveServlet" method="post">
    <div class="two">
        <table align="center">
            <tr>
                <td>姓名:</td><td><%out.print(request.getAttribute("name"));%></td>
            </tr>
            <tr>
                <td>性别:</td><td><%out.print(request.getAttribute("grade"));%></td>
            </tr>
            <tr>
                <td>用户id:</td><td><%out.print(request.getAttribute("stuid"));%></td>
            </tr>
            <tr>
                <td>密码:</td><td><input type="text" value="<%out.print(request.getAttribute("password"));%>" name="password"></td>
            </tr>
            <tr>
                <td>学院:</td><td><%out.print(request.getAttribute("department"));%></td>
            </tr>
            <tr>
                <td>电话号码:</td><td><input type="text" value="<%out.print(request.getAttribute("phone"));%>" name="phone"></td>
            </tr>
            <tr>
                <td>邮箱:</td><td><input type="text" value="<%out.print(request.getAttribute("email"));%>" name="email"></td>
            </tr>
            <tr>
                <td>信誉分:</td><td><%out.print(request.getAttribute("creditscore"));%></td>
            </tr>
        </table>
    </div>
    <input type="text" value="<%out.print(request.getAttribute("stuid"));%>" hidden="hidden" name="id">
    <div class="ww"></div>
    <div class="three">
        <input type="submit" value="保存" class="bu" align="center">
    </div>
</form>
</body>
</html>
